import java.math.BigInteger;

public class IntegerNumberTest {
    public static void main(String[] args) {
        byte b1 = 100;
//        byte b2 = 200;//报错，超出byte范围

        short s1 = 100;
        short s2 = 200;
//        short s3 = 32769;//报错，超出short范围

        int i1 = 100;
        int i2 = 32769;
//        int i3 = 32769814521;//报错，超出int范围

        long l1 = 100;
        long l2 = 32769814521L;//超过int范围的字面量值必须加L
//        long l3 = 86321458632145634563214563L;//超过long的范围

        /*BigInteger a = new BigInteger("86321456321456314563245201453");
        BigInteger b = new BigInteger("862145863214586386214563214521452421452012");
        System.out.println(a.add(b));*/
    }
}
